appLeadacity.appStatus = "Initializing Leadacity."; appLeadacity.overlay = {"active":"1","image":"\/webroot\/images\/pages\/clients\/jewcy\/jewcy-email.jpg","question":"I like to keep up on the latest Jewish news, ideas, and pop culture.","texts":{"1":"Get a tall glass of Jewcy in your inbox each week.","2":"Pop culture, jewced. Sign up for the weekly Jewcy newsletter."},"pageviews":"1","cookie_reset":"30","cookie_time":1523017397,"cookie_time_reset":1525609397,"api":{"provider":"MailChimp","active":"1","access_token":"","api_key":"d069e1812cff0eda703744ea1ecd1bc8-us6","username":"","password":"","list_key":"1d3fa85516","group_id":"","group_name":"","account_id":"","client_folder_id":"","url_key":"","triggerWorkflows":"","short_name":"","data_center_key":"us6"},"style":{"module":{"border_color":"5E4E71","background_color":"FFFFFF"},"plugin":{"background_color":"EAEAEA"},"image":{"border_color":"5E4E71","background_color":"BDBDBD"},"button":{"color":"FFFFFF","background_color":"5E4E71","font_family":"'Lucida Sans Unicode', 'Lucida Grande', sans-serif","font_style":"normal","font_weight":"normal","text_decoration":"none"},"p":{"color":"404040","font_family":"'Lucida Sans Unicode', 'Lucida Grande', sans-serif","font_style":"normal","font_weight":"normal","text_align":"left","text_decoration":"none"},"hyperlink":{"color":"5E4E71","font_family":"'Lucida Sans Unicode', 'Lucida Grande', sans-serif","font_style":"normal","font_weight":"normal","text_decoration":"none"}},"type":"email"}; appLeadacity.campaign = {"active":"1","archived":"0","type":"3","name":"Double Ask","image":"","question":"","buttontext":"Sign Me Up!","campaigntexts":{"1":"","2":""},"campaigntext":"0","texts":["1","2"],"layouts":["1","2","3"],"urls":["+http:\/\/jewcy.com\/*"],"api":{"list_key":"","group_id":"","group_name":""},"special_offer":{"promotion":"","confirmation":"","email_subject":"","email_text":""},"facebook":{"text":"Thank you for subscribing. For more Jewcy updates join us on Facebook."},"id":2}; appLeadacity.getValues = {"id":"27"}; appLeadacity.loadScript(appLeadacity.servername + "/webroot/css/modules.css", "css", false); appLeadacity.loadScript(appLeadacity.servername + "/webroot/js/app/lib.min.js", "js", false); (function(){ var _fb_root = document.getElementById('fb-root'); var _body = document.getElementsByTagName('body')[0]; var _firstDiv = document.body.childNodes[0]; var _fbDiv = document.createElement('div'); var _lcContent = '

Get a tall glass of Jewcy in your inbox each week.

Please enter a valid email address.

Email successfully received. Thank you for signing up.

...
...

Thank you for subscribing. For more Jewcy updates join us on Facebook.

...
...
'; var _lcContentID = '#'; var _delay = 0; var _show = 0; var _rendered = false; var _resizeDelay = null; var _campaignType = null; var _lcCookieID = '1524668891'; var _lcTrackID = '2018-04-25:27:2:2:3:1'; _fbDiv.id = 'fb-root'; _campaignType = 3; appLeadacity.setCookie('lc_trackID', _lcTrackID, 180); if(_fb_root == null) { (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) return; js = d.createElement(s); js.id = id; js.src = "//connect.facebook.net/en_US/all.js#xfbml=1"; fjs.parentNode.insertBefore(js, fjs); } (document, 'script', 'facebook-jssdk')); if(!document.getElementById(_fbDiv.id)) _body.insertBefore(_fbDiv, _firstDiv); } var init = function(loaded) { console.log('Leadacity.init'); var initFBCookies = function() { appLeadacity.setCookie('lc_fb_session', _lcTrackID, 1); appLeadacity.setCookie('lc_fb_cookie', _lcCookieID, 360); appLeadacity.setCookie('lc_fb_track_id', _lcTrackID, 360); }; var initEmailCookies = function() { appLeadacity.setCookie('lc_em_session', _lcTrackID, 1); appLeadacity.setCookie('lc_em_cookie', _lcCookieID, 360); appLeadacity.setCookie('lc_em_track_id', _lcTrackID, 360); }; var initPageCookies = function() { appLeadacity.setCookie('lc_pg_session', _lcTrackID, 1); appLeadacity.setCookie('lc_pg_cookie', _lcCookieID, 360); appLeadacity.setCookie('lc_pg_track_id', _lcTrackID, 360); }; var initFB = function() { console.log('Leadacity.init.facebook'); var render = function () { LC('div.lc-social-holder').each(function() { var _width = LC(this).width(); var _str = 'data-width="' + _width + '"'; var _html = LC(this).html(); _html = _html.replace(/data-width=".*?"/, _str); LC(this).html(_html); }); FB.XFBML.parse(); }; FB.Event.subscribe('edge.create', function(response) { LC(_lcContentID).removeClass('lc-module-off'); var _get = { lc_curr_module : 'facebook', lc_query_type : 'converted', 'lc_trackID' : _lcTrackID, lc_fb_converted : _lcTrackID, lc_profile_id : _lac['clientID'] }; if(_campaignType) _get.lc_campaign_type = _campaignType; appLeadacity.loadScript(appLeadacity.servername + '/update/app/script/' + appLeadacity.getVariableString(_get), "js", false); appLeadacity.setCookie('lc_fb_converted', _lcTrackID, 360); LC('div.lc-module-opt-out').addClass('lc-module-exit').removeClass('lc-module-opt-out'); }); FB.Event.subscribe('xfbml.render', function(response) { _delay = setTimeout(function() { if(_rendered) return false; _rendered = true; LC(window).trigger('resize'); LC(_lcContentID).removeClass('lc-module-off'); }, 2000); }); LC(window).on('load resize', function(e) { if(FB && FB.XFBML) { clearTimeout(_resizeDelay); _resizeDelay = setTimeout(function(e) { render(); }, 100); } }); if (loaded && FB && FB.XFBML) render(); }; var initFBEvents = function() { console.log('Leadacity.init.facebook.events'); LC('div.lc-module-opt-out').click(function() { appLeadacity.setCookie('lc_fb_opt_out', _lcTrackID, 180); LC(_lcContentID).addClass('lc-module-off'); appLeadacity.loadScript(appLeadacity.servername + '/update/app/script/' + appLeadacity.getVariableString({ lc_curr_module : 'facebook', lc_query_type : 'rejected', 'lc_trackID' : _lcTrackID, lc_fb_opt_out : _lcTrackID, lc_profile_id : _lac['clientID'] }), "js", false); }); }; var initEmailEvents = function() { console.log('Leadacity.init.email.events'); _delay = setTimeout(function() { LC(_lcContentID).removeClass('lc-module-off'); LC('input.lc-email-submit').css({ opacity : 0.25 }); },2000); LC('input.lc-email-input').focus(function() { if(this.value == this.defaultValue) { this.value = ''; } }).blur(function() { if(this.value == '') { this.value = this.defaultValue; } }); LC('input.lc-email-agree').click(function() { LC('.lc-module-init').hide(); LC('.lc-module-main').fadeIn(300); }); LC('div.lc-module-opt-out, input.lc-email-disagree').click(function() { LC(_lcContentID).addClass('lc-module-off'); if(this.className.indexOf('lc-module-opt-out') < 0) return false; appLeadacity.setCookie('lc_em_opt_out', _lcTrackID, 180); appLeadacity.loadScript(appLeadacity.servername + '/update/app/script/' + appLeadacity.getVariableString({ lc_curr_module : 'email', lc_query_type : 'rejected', 'lc_trackID' : _lcTrackID, lc_em_opt_out : _lcTrackID, lc_profile_id : _lac['clientID'] }), "js", false); }); LC('input.lc-email-input').keyup(function(e) { if(e.which === 13) LC('input.lc-email-submit').trigger('click'); if(appLeadacity.validate(this.value, 'email')) { LC('input.lc-email-submit').get(0).ischanged = true; LC('input.lc-email-submit').css({ opacity : 1 }); } }); LC('input.lc-email-submit').click(function(e) { if(!LC('input.lc-email-submit').get(0).ischanged) return false; var _lc_email = LC('input.lc-email-input').val(); var _lc_validate = appLeadacity.validate(_lc_email, 'email'); if(this.className.indexOf('lc-submitted') >= 0) { LC('.lc-module-error').text('You have already submitted, thank you.').show(); return false; } if(_lc_validate) { LC('input.lc-email-submit').addClass('lc-submitted'); LC('.lc-module-error').hide(); LC('input.lc-email-input').removeClass('lc-error') appLeadacity.setCookie('lc_em_converted', _lcTrackID, 360); appLeadacity.loadScript(appLeadacity.servername + '/update/app/script/' + appLeadacity.getVariableString({ lc_curr_module : 'email', lc_query_type : 'converted', 'lc_trackID' : _lcTrackID, lc_em_converted : _lcTrackID, lc_profile_id : _lac['clientID'], em_email : _lc_email }), "js", false); LC('.lc-email-input, .lc-email-button').hide(); if(LC('div.lc-module-content-end').length > 0) initFBOverlay(); else initConfirmation(); LC('div.lc-module-opt-out').addClass('lc-module-exit').removeClass('lc-module-opt-out'); } else { LC('.lc-module-error').text('Please enter a valid email address.').show(); LC('input.lc-email-input').addClass('lc-error') } }); var initConfirmation = function() { _show = setTimeout(function() { LC('.lc-module-main, .lc-module-init').hide(); LC('.lc-module-end').fadeIn(300); clearTimeout(_show); },800); }; var initFBOverlay = function() { _show = setTimeout(function() { clearTimeout(_show); initFBCookies(); initFB(); initFBEvents(); LC('div.lc-module-content-init').hide(); LC('div.lc-module-content-end').fadeIn(300); LC(window).resize(); },800); }; }; var initPageEvents = function() { console.log('Leadacity.init.page.events'); LC(_lcContentID).removeClass('lc-module-off').fadeIn(400); LC('div.lc-module-opt-out, div.lc-module-overlay-close').click(function() { appLeadacity.setCookie('lc_pg_opt_out', _lcTrackID, 180); LC(_lcContentID).fadeOut(1000); appLeadacity.loadScript(appLeadacity.servername + '/update/app/script/' + appLeadacity.getVariableString({ lc_curr_module : 'page', lc_query_type : 'rejected', 'lc_trackID' : _lcTrackID, lc_pg_opt_out : _lcTrackID, lc_profile_id : _lac['clientID'] }), "js", false); }); LC('#lc-module-convert').click(function() { appLeadacity.setCookie('lc_pg_convert', _lcTrackID, 360); LC(_lcContentID).fadeOut(1000); appLeadacity.loadScript(appLeadacity.servername + '/update/app/script/' + appLeadacity.getVariableString({ lc_curr_module : 'page', lc_query_type : 'converted', 'lc_trackID' : _lcTrackID, lc_pg_convert : _lcTrackID, lc_profile_id : _lac['clientID'] }), "js", false); }); LC('span.lc-page-overlay-image').click(function(e) { LC('div.lc-module-iframe').toggleClass('lc-visibility'); var Index = LC('span.lc-page-overlay-image').index(this); LC('iframe.lc-page-overlay-image').each(function(index, iframe) { if(Index === index) LC(iframe).attr('src', LC(iframe).attr('data-src')); }); }); }; LC(_body).append(_lcContent); _lcContentID += LC('.lc-module-container').attr('id'); LC(_lcContentID).addClass('lc-module-overlay lc-animate lc-module-off'); /* !Email Module */ initEmailCookies(); initEmailEvents(); } var loadTimer = setInterval(function() { if(window.LC) { if(document.readyState === 'complete' || document.readyState === 'interactive') init(true); else { LC(window).on('load', function() { init(); }); } clearInterval(loadTimer); } }, 200); }()); appLeadacity.impression = 'Invalid impression data provided.'; appLeadacity.message = "
  • Application mode is on
  • Account ID: 27
  • Referer URL received
  • Profile data received, account active
  • Check type of current device
  • Current device is Desktop
  • Mobile display is set to on
  • Checking Account Conversion Limit
  • Account Conversion Limit is currently set to 0
  • Page Overlay Module mode is on
  • Checking page Module
  • Checking page PageViews
  • page PageViews is currently set to 1
  • page Module is currently inactive
  • Email Overlay Module mode is on
  • Checking email Module
  • Checking email PageViews
  • email PageViews is currently set to 1
  • Checking email module campaigns
  • email module campaigns: 2
  • Checking email module campaign 2
  • Double Ask is active
  • URL is active for email campaign 2
  • Checking email module campaign 1
  • Jewcy - Global is active
  • URL is active for email campaign 1
  • Checking email module Converted Cookie
  • Checking email module Active Session
  • Checking email module Active Cookie
  • Displaying: Double Ask - Facebook is active
  • Modules checked: 2
  • Refered URL: http://jewcy.com/jewish-religion-and-beliefs/judaism_does_death_right_0
  • "; if(window.LC) LC('#leadacity-modules-message').html(appLeadacity.message);